<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title id="myTitle"></title>
<link rel="stylesheet"  type="text/css" href="./AmazeUI-2.4.2/assets/css/amazeui.css"/>
<link href="./AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
<link href="./basic/css/demo.css" rel="stylesheet" type="text/css" />

<link href="./css/sustyle.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="./basic/js/jquery-1.7.min.js"></script>
    <!--css+div原生页面以script src的方式继承vue和axios-->
    <script src="js/plugins/vue/dist/vue.js"></script>
    <script src="js/plugins/axios/dist/axios.js"></script>

    <!--通过common.js完成axios的全局配置-->
    <script src="js/common.js"></script>
</head>

<body>
   <div id="shopDiv">
    {{shop}}
   </div>

   <script type="text/javascript">
       new Vue({
           el:"#shopDiv",
           data:{
               shop:{
               }
           }
           ,mounted(){
              let shopId= parseUrlParams(location.href).shopId;
              this.$http.get("/shop/"+shopId)
                  .then(result=>{
                      this.shop = result.data;
                      $("#myTitle").html( this.shop.name);
                  })
           }
       })
   </script>

</body>
</html>
